@ECHO ===========================================================================================================
@ECHO HCE Build Script
@ECHO Run this batch file from Visual Studio 2005 Command Prompt
@ECHO Routing Services MSI needs to be imported from Biztalk Server, refer deployment guide for more information.
@ECHO Use ORCA tool to manually add additional dialogs for Patient Register & Service Provider Register Admin MSI.
@ECHO Refer "MSI Manual Steps" document for more information on ORCA tool steps.
@ECHO ===========================================================================================================


MSBuild "..\ServiceProviderRegister\ServiceProviderRegister.sln" /t:Rebuild /clp:NoItemAndPropertyList /p:Configuration=Release /logger:FileLogger,Microsoft.Build.Engine;LogFile=ServiceProviderRegister.sln.BuildLog.log

MSBuild "..\ChangeNotificationService\ChangeNotificationService.sln" /t:Rebuild /clp:NoItemAndPropertyList /p:Configuration=Release /logger:FileLogger,Microsoft.Build.Engine;LogFile=ChangeNotificationService.sln.BuildLog.log

MSBuild "..\ConnectionEngineSDK\ConnectionEngineSDK.sln" /t:Rebuild /clp:NoItemAndPropertyList /p:Configuration=Release /logger:FileLogger,Microsoft.Build.Engine;LogFile=ConnectionEngineSDK.sln.BuildLog.log

MSBuild "..\InvocationRegister\InvocationRegister.sln" /t:Rebuild /clp:NoItemAndPropertyList /p:Configuration=Release /logger:FileLogger,Microsoft.Build.Engine;LogFile=InvocationRegister.sln.BuildLog.log

MSBuild "..\PatientRegister\PatientRegister.sln" /t:Rebuild /clp:NoItemAndPropertyList /p:Configuration=Release /logger:FileLogger,Microsoft.Build.Engine;LogFile=PatientRegister.sln.BuildLog.log

MSBuild "..\RoutingServices\RoutingServices.sln" /t:Rebuild /clp:NoItemAndPropertyList /p:Configuration=Release /logger:FileLogger,Microsoft.Build.Engine;LogFile=RoutingServices.sln.BuildLog.log

MSBuild "..\ServiceProviderRegisterAdmin\ServiceProviderRegisterAdmin.sln" /t:Rebuild /clp:NoItemAndPropertyList /p:Configuration=Release /logger:FileLogger,Microsoft.Build.Engine;LogFile=ServiceProviderRegisterAdmin.sln.BuildLog.log

devenv.exe "..\ChangeNotificationService\ChangeNotificationServiceSetup\ChangeNotificationServiceSetup.vdproj" /build
devenv.exe "..\ConnectionEngineSDK\ServiceProviderSampleMergeModule\ServiceProviderSampleMergeModule.vdproj" /build
devenv.exe "..\ConnectionEngineSDK\SysAdapterSampleMergeModule\SysAdapterSampleMergeModule.vdproj" /build
devenv.exe "..\ConnectionEngineSDK\SystemAdapterBaseMergeModule\SystemAdapterBaseMergeModule.vdproj" /build
devenv.exe "..\ConnectionEngineSDK\ToolSourceMergeModule\ToolSourceMergeModule.vdproj" /build
devenv.exe "..\ConnectionEngineSDK\ToolsServiceProviderMergeModule\ToolsServiceProviderMergeModule.vdproj" /build
devenv.exe "..\ConnectionEngineSDK\SystemAdapterSDK\SystemAdapterSDK.vdproj" /build
devenv.exe "..\InvocationRegister\InvocationRegisterTestSetup\InvocationRegisterTestSetup.vdproj" /build
devenv.exe "..\PatientRegister\PatientRegisterSetup\PatientRegisterSetup.vdproj" /build
devenv.exe "..\ServiceProviderRegister\ServiceProviderRegisterSetup\ServiceProviderRegisterSetup.vdproj" /build
devenv.exe "..\ServiceProviderRegisterAdmin\ServiceProviderRegisterAdminSetup\ServiceProviderRegisterAdminSetup.vdproj" /build

devenv.exe "..\RoutingServices\Schemas\Schemas.btproj" /build
devenv.exe "..\RoutingServices\WebReferences\WebServicesReferences.btproj" /build
devenv.exe "..\RoutingServices\Maps\Maps.btproj" /build
devenv.exe "..\RoutingServices\Orchestrations\Orchestrations.btproj" /build

@ECHO ===========================================================================================================
@ECHO HCE Build Script
@ECHO Run this batch file from Visual Studio 2005 Command Prompt
@ECHO Routing Services MSI needs to be imported from Biztalk Server, refer deployment guide for more information.
@ECHO Use ORCA tool to manually add additional dialogs for Patient Register & Service Provider Register Admin MSI.
@ECHO Refer "MSI Manual Steps" document for more information on ORCA tool steps.
@ECHO ===========================================================================================================

Pause